home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
emulator
/
bsvc-1.000
/
bsvc-1
/
bsvc-1.0.4
/
samples
/
Motorola68000
/
example.s
< prev
next >
Wrap
Text File
|
1995-07-26
|
342b
|
12 lines
ORG $2000 Start at location 2000 Hex
START CLR.W SUM Clear variable SUM
MOVE.W COUNT,D0 Load COUNT value
LOOP ADD.W D0,SUM ADD D0 to SUM
SUB.W #1,D0 Decrement counter
BNE LOOP Loop if counter not zero
BREAK Tell the simulator to BREAK if we're running
SUM DS.W 1 Reserve one word for SUM
COUNT DC.W 25 Initial value for COUNT